Instance 11Centrality↓:10.994983851563214 Specificity↑:4.685223860530533
Class260.poll(MonitoredService svc,Map<String,Object> parameters)#0{
if (response == null) {
continue;
}
if (MULTILINE.matcher(response).find()) {
// Ok we have a multi-line response...first three
// chars of the response line are the return code.
// The last line of the response will start with
// return code followed by a space.
String multiLineRC = new String(response.getBytes("ASCII"), 0, 3, "ASCII");
// Create new regExp to look for last line
// of this multi line response
Pattern endMultiline = null;
try {
endMultiline = Pattern.compile(multiLineRC);
} catch (PatternSyntaxException ex) {
throw new java.lang.reflect.UndeclaredThrowableException(ex);
}
// read until we hit the last line of the multi-line
// response
do {
response = rdr.readLine();
} while (response != null && !endMultiline.matcher(response).find());
if (response == null) {
continue;
}
}
t = new StringTokenizer(response);
rc = Integer.parseInt(t.nextToken());
if (rc == 250) {
response = sendMessage(socket, rdr, "QUIT\r\n");
t = new StringTokenizer(response);
rc = Integer.parseInt(t.nextToken());
if (rc == 221) {
serviceStatus = PollStatus.available(responseTime);
}
}
}
|
|